package cn.itsource.basic.service;

import cn.itsource.basic.query.BaseQuery;
import cn.itsource.utils.PageList;

import java.util.List;

public interface IBaseService<T> {
    void saveOrUpdate(T t);
    void delete(Long id);
    T loadById(Long id);
    List<T> loadAll();
    //分页查询的方法
    PageList<T> page(BaseQuery baseQuery);
}
